﻿@model ICDA.Web.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div>
        <div class="formcontainer">
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.UserName)
                </div>
                <div class="formfield">
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.Email)
                </div>
                <div class="formfield">
                    @Html.TextBoxFor(m => m.Email)
                    @Html.ValidationMessageFor(m => m.Email)
                </div>
            </div>
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.Password)
                </div>
                <div class="formfield">
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>
            <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.ConfirmPassword)
                </div>
                <div class="formfield">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
            </div>

             <div class="formtr" style="height:40px;">
                <div class="formlabes">
                    @Html.LabelFor(m => m.Role)
                </div>
                <div class="formfield">
                    @Html.TextBoxFor(m => m.Role)
                    @Html.ValidationMessageFor(m => m.Role)
                </div>
            </div>
            <div class="formEditButton">
                <input type="submit" value="Register User" class="button orange medium" />
            </div>
        </div>
</div>
}
